package com.tools.dao.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.tools.dao.ThemeDetailDao;
import com.tools.entity.ThemeDetail;
import com.tools.mapper.ThemeDetailMapper;

@Repository("themeDetailDao")
public class ThemeDetailDaoImpl implements ThemeDetailDao {
    
    @Resource(name = "themeDetailMapper")
    private ThemeDetailMapper themeDetailMapper;
    
    public int insert(ThemeDetail themeDetail) {
        // TODO Auto-generated method stub
        return themeDetailMapper.insert(themeDetail);
    }
    
    public int delete(int tid) {
        // TODO Auto-generated method stub
        return themeDetailMapper.delete(tid);
        
    }
    
    public int update(ThemeDetail themeDetail) {
        // TODO Auto-generated method stub
        return themeDetailMapper.update(themeDetail);
    }
    
}
